package com.group02.community.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.group02.community.entity.dict.SysDictType;
import com.group02.community.mapper.DictTypeMapper;
import com.group02.community.service.IDictTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DictTypeServiceImpl extends ServiceImpl<DictTypeMapper,SysDictType> implements IDictTypeService {

    @Autowired
    DictTypeMapper dictTypeMapper;

    @Override
    public SysDictType getDictType(String type) {
        return dictTypeMapper.selectByDictType(type);
    }
}
